package com.shadow.common;

/**
 * 系统常用量.
 * @Date: 2020/9/7 17:20
 */
public final class Constants {

    /**
     * 分隔符相关.
     **/
    public static final String SPLIT_COMMA = ",";   // 逗号
    public static final String SPLIT_SEMICOLON = ";";   // 分号
    public static final String SPLIT_EQUAL = "=";   // 等于
    public static final String SPLIT_UNDERLINE = "_";   // 下划线分
    public static final String SPLIT_AND_JOIN = "&";   // 与
    public static final String SPLIT_DASH = "-";   // 横杠
    public static final String SPLIT_COLON = ":";   // 冒号
    public static final String SPLIT_SLASH = "/";   // 斜杠
    public static final String SPLIT_VERTICAL_LINE = "|";   // 垂直线
    public static final String SPLIT_TILDE = "~";   // 波浪号
    public static final String SPLIT_QUESTION_MARK = "?";   // 问号
    public static final String SPLIT_POINT_ESAPE = "\\."; // 点
    public static final String SPLIT_VERTICAL_LINE_ESCAPE = "\\|"; // 竖线
    public static final String SPLIT_SYMBOL = "@";   //@符


    /**
     * 系统批量数据操作阀值.
     **/
    public static final int PAGER_PAGE = 1;                      // 分页查询：当前页数
    public static final int PAGER_ROWS = 10;                     // 分页查询：每页数据量(thymeleaf分页)
    public static final int PAGER_LIMIT = 10;                    // 分页查询：每页数据量(layui分页)
    public static final int QUERY_DATA_LIMIT = 1000;             // 后台一次查询库表的记录数
    public static final int BATCH_INSERT_LIMIT = 5000;           // 每次批量插入限制数
    public static final int EXPORT_EXCEL_WIDTH = 25;             // 导出Excel列宽

    public static final String STRING_ZERO = "0";                 // 零
    public static final int NUMBER_ZERO = 0;                      // 0
    public static final int NUMBER_ONE = 1;                      // 1
    public static final int NUMBER_TWO = 2;                      // 2
    public static final int NUMBER_THREE = 3;                     // 3
    public static final int NUMBER_FOUR = 4;                      // 4
    public static final int NUMBER_FIVE = 5;                      // 5
    public static final int NUMBER_SIX = 6;                       // 6
    public static final int NUMBER_SEVEN= 7;                    // 7
    public static final int NUMBER_EIGHT = 8;                     // 8
    public static final int NUMBER_NINE = 9;                      // 9
    public static final int NUMBER_TEN = 10;                      // 10

    /**
     * 菜单资源信息.
     **/
    public static final String RES_ROOT_PARENT = "-1";              // 资源菜单一级节点
    public static final String RES_ROOT_PARENT_NAME = "系统菜单资源"; // 资源菜单一级节点

    public static final String NORMAL_USER = "user"; //默认角色
    public static final String ROLE_ADMIN = "admin"; //系统维护员
    public static final String ROLE_ADMIN_NAME = "系统维护员"; //系统维护员

    //时间格式
    public static final String PATTERN_HMS_DAWN = " 00:00:00";
    public static final String PATTERN_HMS_VAL = " 23:59:59";


    /**
     * 默认构造方法.
     */
    private Constants() {
    }
}
